import request from '/@/utils/request';

/**
* Store_advertising
*/
export function store_advertisingApi() {
	return {
		list: (params?: object)=> {
			return request({
			url: import.meta.env.VITE_APP_BASE_API+'/sxpcwlkj/store_advertising/list',
			method: 'post',
			params
			});
		},
		edit: (params?: object)=> {
			return request({
			url: import.meta.env.VITE_APP_BASE_API+'/sxpcwlkj/store_advertising',
			method: 'put',
			data: params
			});
		},
		query: (id?: number | string)=> {
			return request({
			url: import.meta.env.VITE_APP_BASE_API+'/sxpcwlkj/store_advertising/'+id,
			method: 'get'
			});
		},
		insert: (params?: object) => {
			return request({
			url: import.meta.env.VITE_APP_BASE_API+'/sxpcwlkj/store_advertising',
			method: 'post',
			data: params
			});
		},
		delete: (id?: number | string) => {
			return request({
			url: import.meta.env.VITE_APP_BASE_API+'/sxpcwlkj/store_advertising/' + id,
			method: 'delete'
			});
		},
	};
}
